import request from "@/utils/request";
//购物车列表
export function getCartList() {
  return request({
    url: "/cart/list",
    method: "get"
  });
}
//购物车商品数量修改
export function updateCartNum(data = {}) {
  return request({
    url: "/cart/update/quantity",
    method: "get",
    params: { ...data }
  });
}

//删除购物车商品
export function deleteCartData(ids) {
  return request({
    url: "/cart/delete",
    method: "post",
    data: ids
  });
}
